﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExamWeek01.Service.IService
{
    /// <summary>
    /// 服务接口
    /// </summary>
    public interface IBaseService<T>where T : class
    {
        IQueryable<T> GetAll();
        int Add(T entity);
        int Update(T entity);
        int Delete(int id);
        T GetId(int id);
    }
}
